// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   InitServerHooks.java

package org.quickserver.util.xmlreader;

import java.util.ArrayList;
import java.util.Iterator;

public class InitServerHooks extends ArrayList
{

    public InitServerHooks()
    {
    }

    public void addClassName(String className)
    {
        if(className != null && className.trim().length() != 0)
            add(className.trim());
    }

    public String toXML(String pad)
    {
        if(pad == null)
            pad = "";
        StringBuilder sb = new StringBuilder();
        sb.append(pad).append("<init-server-hooks>\n");
        String classname;
        for(Iterator iterator = iterator(); iterator.hasNext(); sb.append(pad).append("\t<class-name>").append(classname).append("</class-name>\n"))
            classname = (String)iterator.next();

        sb.append(pad).append("</init-server-hooks>\n");
        return sb.toString();
    }
}
